jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Mon, 27 Jul 2026 09:39:42 +0000 (11:39 +0200)
committerEmilio Pozuelo Monfort <pochu@debian.org>
Mon, 27 Jul 2026 09:39:42 +0000 (11:39 +0200)
commitf8e2fff3a2af8969498dfee29b789313beb00b2d
tree0793b7da7b1db9406a02f760839e300c4fc70844
parent2f8cb8908f305ad11020f157880c7f3105e40eff
jlink: Hash of module differs to expected hash recorded in java.base

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944738
Forwarded: not-needed

The cause is the use of dh_strip_nondeterminism late in the build
process.  This reorganises the jmod files, which in turn changes their
SHA256 checksums.  This would not be a problem, except that the
checksums are saved in java.base.jmod *before* the use of
dh_strip_nondeterminism.  Performing this stripping immediately after
each jmod file is created results in the checksums being consistent
throughout.

Gbp-Pq: Name reproducible-build-jmod.diff
make/CreateJmods.gmk